# $Id: PKGBUILD 66206 2012-02-23 03:20:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=libsynaptics
pkgver=0.14.6c
pkgrel=5
pkgdesc="Library for accessing synaptics touchpads"
arch=('i686' 'x86_64')
url="http://qsynaptics.sourceforge.net"
license=('GPL')
depends=('gcc-libs')
makedepends=('xproto')
options=('!libtool')
source=(http://qsynaptics.sourceforge.net/$pkgname-$pkgver.tar.bz2 libsynaptics-gcc433.patch)
md5sums=('fedf8b31171d288954ff2e83b251de44'
         '5e1df34fe8c2480b803a8ea6520bdda8')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np0 -i ../libsynaptics-gcc433.patch
  sed -i '1,1i#include <stdio.h>' pad.cpp
  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install
}
